Carbon


GetControlMaximum

Header: Controls.h Carbon status: Supported

Obtains a control’s maximum setting.

SInt16 GetControlMaximum (
    ControlRef theControl
);
Parameter descriptions
theControl

A handle to the control whose maximum value you wish to determine.

function result

The specified control’s maximum setting, which is stored in the contrlMax field of the control structure.

DISCUSSION

When you create a control, you specify an initial maximum setting either in the control resource or in the max parameter of the function NewControl. You can change the maximum setting by using the function SetControlMaximum.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)